﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace WebApiTest.Models
{
    [Table("TestClass")]
    public class TestClass
    {
        [Key, DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Column(TypeName = "varchar"), MaxLength(50)]
        public string Name { get; set; }

        [Column(TypeName = "blob"), MaxLength(3000)]
        public byte[] DataFile { get; set; }

        [Column(TypeName = "blob"), MaxLength(3000)]
        public byte[] DataFileddd { get; set; }
    }
}